import { axios } from "@/services/axios";

const EmployeeActivity = {
  get: data => axios.get(`api/employeeactivity/${data.id}`),
  getbyemployeeid: data => axios.get(`api/employeeactivitybyemployeeid/${data.employeeid}/${data.sourcetype}`),
  getlist: params => axios.post(`api/employeeactivity/list`, params),
  create: data => axios.post("api/employeeactivity", data),
  getid: data => axios.get("api/employeeactivity", data),
  save: data => axios.post(`api/employeeactivity/${data.id}`, data),
  delete: data => axios.post(`api/employeeactivity/delete/${data.id}`),
};

export default EmployeeActivity;